package com.main.accountpermissionsmanagement.domain.account.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.main.accountpermissionsmanagement.domain.account.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface AccountMapper extends BaseMapper<Account> {
   Long getAccountNumberMax();
   List<Account> findByNumber(@Param("number") String number);
   List<Long>  findByPhone(@Param("phone") String phone);
   List<Account>  findByUserId(@Param("userId") Long userId);
   List<Account>  findByUserIds(@Param("userIdList") List<Long> userIdList);
}
